﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model.NMT
{
   public class NMT_TB_Major_ProvinceMajor : Entity
    {
        public NMT_TB_Major_ProvinceMajor() : base("NMT_TB_Major_ProvinceMajor") { }

        #region Model
        private string _ProvinceNO;
        private string _MajorNO;
        private string _ProvinceMajorNO;
        private string _KLDM;
        private string _InputUser;
        private DateTime _InputTime;
        /// <summary>
        /// 
        /// </summary>
        public string ProvinceNO
        {
            get { return _ProvinceNO; }
            set
            {
                this.OnPropertyValueChange(_.ProvinceNO, _ProvinceNO, value);
                this._ProvinceNO = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string MajorNO
        {
            get { return _MajorNO; }
            set
            {
                this.OnPropertyValueChange(_.MajorNO, _MajorNO, value);
                this._MajorNO = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ProvinceMajorNO
        {
            get { return _ProvinceMajorNO; }
            set
            {
                this.OnPropertyValueChange(_.ProvinceMajorNO, _ProvinceMajorNO, value);
                this._ProvinceMajorNO = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string KLDM
        {
            get { return _KLDM; }
            set
            {
                this.OnPropertyValueChange(_.KLDM, _KLDM, value);
                this._KLDM = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string InputUser
        {
            get { return _InputUser; }
            set
            {
                this.OnPropertyValueChange(_.InputUser, _InputUser, value);
                this._InputUser = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime InputTime
        {
            get { return _InputTime; }
            set
            {
                this.OnPropertyValueChange(_.InputTime, _InputTime, value);
                this._InputTime = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
                _.ProvinceNO,
                _.MajorNO,
                _.ProvinceMajorNO};
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
                _.ProvinceNO,
                _.MajorNO,
                _.ProvinceMajorNO,
                _.KLDM,
                _.InputUser,
                _.InputTime};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
                this._ProvinceNO,
                this._MajorNO,
                this._ProvinceMajorNO,
                this._KLDM,
                this._InputUser,
                this._InputTime};
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(IDataReader reader)
        {
            this._ProvinceNO = DataUtils.ConvertValue<string>(reader["ProvinceNO"]);
            this._MajorNO = DataUtils.ConvertValue<string>(reader["MajorNO"]);
            this._ProvinceMajorNO = DataUtils.ConvertValue<string>(reader["ProvinceMajorNO"]);
            this._KLDM = DataUtils.ConvertValue<string>(reader["KLDM"]);
            this._InputUser = DataUtils.ConvertValue<string>(reader["InputUser"]);
            this._InputTime = DataUtils.ConvertValue<DateTime>(reader["InputTime"]);
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(DataRow row)
        {
            this._ProvinceNO = DataUtils.ConvertValue<string>(row["ProvinceNO"]);
            this._MajorNO = DataUtils.ConvertValue<string>(row["MajorNO"]);
            this._ProvinceMajorNO = DataUtils.ConvertValue<string>(row["ProvinceMajorNO"]);
            this._KLDM = DataUtils.ConvertValue<string>(row["KLDM"]);
            this._InputUser = DataUtils.ConvertValue<string>(row["InputUser"]);
            this._InputTime = DataUtils.ConvertValue<DateTime>(row["InputTime"]);
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "NMT_TB_Major_ProvinceMajor");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field ProvinceNO = new Field("ProvinceNO", "NMT_TB_Major_ProvinceMajor", "ProvinceNO");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field MajorNO = new Field("MajorNO", "NMT_TB_Major_ProvinceMajor", "MajorNO");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field ProvinceMajorNO = new Field("ProvinceMajorNO", "NMT_TB_Major_ProvinceMajor", "ProvinceMajorNO");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field KLDM = new Field("KLDM", "NMT_TB_Major_ProvinceMajor", "KLDM");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field InputUser = new Field("InputUser", "NMT_TB_Major_ProvinceMajor", "InputUser");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field InputTime = new Field("InputTime", "NMT_TB_Major_ProvinceMajor", "InputTime");
        }
        #endregion


    }
}